Skip to content

Conversation

@colinzuo
Copy link

add another level of loop to dict fields in MetricGrouping instance

@colinzuo
Copy link
Author

colinzuo commented Oct 22, 2025

In LightevalTaskConfig:str, asdict(self) changed MetricGrouping to dict, so

adding an str method to the MetricGrouping

won't work
To stay consistent with the existing code, I added another level of loop for MetricGrouping, with no other changes

@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey ! thanks for your contribution !
ONly one nit and then we can merge, you would also need to fix the linter :)

else:
repr_v = repr(metric_sub_v)
values.append([f"{k} {ix}: {metric_k}: {metric_sub_k}", repr_v])
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can remove the continue here and use elif right below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants